package com.tian.authen.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhumengping
 * @title: OauthClient
 * @projectName zhump-cloud
 * @date 2023/8/8 14:07
 */
@Data
@Table("oauth_authorize")
public class OauthAuthorize implements Serializable {

    /**主键*/
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**客户端id*/
    private String clientId;

    /**绑定账号的id，例如对应wx来说，就是openid*/
    private String oauthUserId;

    /**对应用户id*/
    private Long userId;

    /**绑定账号名称*/
    private String oauthUserName;
}
